// 思路：将传入的对象作为原型
function objCreate(proto) {
    function F() {}
    F.prototype = proto;
    return new F();
}

let obj = {}
let newObj =objCreate(obj)
console.log(newObj.__proto__ === obj)